package com.nbsaas.boot.product.rest.convert;

import com.nbsaas.boot.product.data.entity.ProductSpecification;
import com.nbsaas.boot.product.api.domain.response.ProductSpecificationResponse;

import com.nbsaas.boot.utils.BeanDataUtils;
import com.nbsaas.boot.rest.api.Converter;
/**
* 商品规格-实体对象转化成响应对象
*/

public class ProductSpecificationResponseConvert  implements Converter<ProductSpecificationResponse,ProductSpecification> {

    @Override
    public ProductSpecificationResponse convert(ProductSpecification source) {
        ProductSpecificationResponse  result = new  ProductSpecificationResponse();
        BeanDataUtils.copyProperties(source, result);
        return result;
    }

}

